package com.example.experiment2

class ProgramAdviserModel {
    // 模拟的查询方法，返回字符串资源ID
    fun getAdviceResourceId(query: String): Int {
        return when (query.lowercase()) {
            "kotlin" -> R.string.kotlin_advice
            "java" -> R.string.java_advice
            else -> R.string.no_advice_available
        }
    }
}